package com.sas.dao;

import java.util.List;
import com.sas.entity.Resources;


/**
 * 资源单位基本信息DAO
 * 2017-11-20
 * @author 胡其安
 * 
 */
public interface ResourcesDao {
	/**
	 * 查询所有权限资源
	 * 
	 * @param resources
	 * @return
	 * @throws Exception
	 */
	public List<Resources> select_resources_all(Resources resources)
			throws Exception;

	/**
	 * 根据用户id查询权限信息
	 * 
	 * @param resources
	 * @return
	 * @throws Exception
	 */
	public List<Resources> select_resources_by_userid(Resources resources)
			throws Exception;
	
	/**
	 * 删除资源信息
	 * 
	 * @param resources
	 * @return
	 * @throws Exception
	 */
	public int deleteResourcesByUserid(Resources resources) throws Exception;

	/**
	 * 插入资源信息
	 * 
	 * @param resources
	 * @throws Exception
	 */
	public void insertResources(Resources resources) throws Exception;
}
